*{
    box-sizing: border-box;
    color: #39619c;
    margin: 0;
    padding: 0;
}

input[type="checkbox"] {
    position: absolute;
    clip: rect(0, 0, 0, 0)
}

input[type="checkbox"]:checked+.menu::before {
    content: '';
    background-color: #39619c;
}

a{
    text-decoration: none;
}

/* start-root */
.title{
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}
/* end-root */

nav{
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 0 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgb(202, 202, 202);
    overflow: hidden;
    z-index: 999;
}

nav .nav-bg{
    max-width: 1200px;
    height: 60px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .nav-content{
    display: flex;
    transition: 0.5s;
}

nav .nav-logo{
    font-size: 18px;
}

nav .nav-list a{
    margin-left: 16px;
    padding: 5px 14px;
    border-radius: 100px;
    transition: 0.3s;
    font-weight: bold;
}

nav .active a{
    background-color: #d3e5ff;;
}

nav .menu{
    display: none;
}

.menu::before {
    content: '';
    display: inline-block;
    background-color: rgb(211, 211, 211);
    border-radius: 5px;
    width: 30px;
    height: 30px;
}

#menu:checked ~ .nav-list {
    display: block;
}

@media screen and (max-width: 500px) {
    nav .menu{
        display: block;
    }
    nav .nav-content{
        position: fixed;
        top: 52px;
        right: 10px;
        flex-direction: column;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 0 8px rgb(202, 202, 202);
        border-radius: 5px;
    }

    nav .nav-list{
        display: none;
        margin: 12px 8px;
    }

    nav .nav-list a{
        margin-left: 0px;
    }

    nav .nav-content .menu{
        position: fixed;
        top: 16px;
        right: 10px;
    }
}

/* main */
main{
    max-width: 1200px;
    margin: auto;
    padding: 100px 20px 0 20px;
    color: white;
}

main>div{
    margin-bottom: 80px;
}

/* banner */
.banner{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.banner h2{
    font-size: 34px;
}

.banner-image{
    width: 30%;
    height: 420px;
    border-radius: 10px;
    background-color: rgb(223, 223, 223);
}

.banner-element{
    line-height: 35px;
    font-weight: bold;
    font-size: 16px;
}

.banner-element span{
    color: white;
    background-color: #5a96f7;
    padding: 3px;
    border-radius: 3px;
}

button{
    color: white;
    font-weight: bold;
    border: 1px solid #677ee2;
    padding: 10px;
    border-radius: 8px;
    background-color: #849aff;
    cursor: pointer;
    margin: 0 10px 10px 0;
}

@media screen and (max-width: 500px) {
    .banner{
        align-items: stretch;
        justify-content: center;
        flex-direction: column;
    }
    .banner-image{
        display: none;
        width: 100%;
        height: 420px;
        border-radius: 10px;
        background-color: rgb(173, 173, 173);
    }
}

/* score */
.score-list{
    margin: 24px 0;
    box-shadow: 0 0 8px rgb(202, 202, 202);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.top{
    position: absolute;
    bottom: -30px;
    right: 24px;
    font-size: 100px;
    font-style: italic;
    color: rgba(173, 173, 173, 0.2);
}

.score-list>div{
    margin-bottom: 10px;
}

.score-name{
    font-size: 22px;
    font-weight: bold;
}

/* ranking */
#ranking{

}

/* footer */
footer{
    width: 100%;
    min-height: 240px;
    padding: 20px;
    background-color: rgb(240, 240, 240);
    display: flex;
    justify-content: space-around;
}

footer>div{
    width: 260px;
}

footer .title{
    text-align: start;
    font-size: 16px;
    font-weight: bold;
}

footer .link{
    padding: 6px 0;
    display: block;
    font-size: 14px;
}

@media screen and (max-width: 500px) {
    footer{
        justify-content: flex-start;
        flex-direction: column;
    }
}